-- GENERATED SPELL FOR [Undercity Guardian] --


function spell0_5624(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5624', 0, 1)
end

function Sorts_5624(pUnit, Event)
local choix_sorts_5624 = math.random(0, 0)
if choix_sorts_5624 == 0 then
pUnit:RegisterEvent('spell0_5624', 1, 1)
end
end

function mob5624_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5624', math.random(1500, 3000), 1)
end

function mob5624_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5624_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5624_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5624, 1, 'mob5624_Action')
RegisterUnitEvent(5624, 2, 'mob5624_Leave')
RegisterUnitEvent(5624, 3, 'mob5624_Kill')
RegisterUnitEvent(5624, 4, 'mob5624_Die')
